import VueRouter from 'vue-router'
import Vue from 'vue'
import Find from '../views/Find.vue'
import My from '../views/My.vue'
import Friend from '../views/Friend.vue'
import NotFound from '../views/NotFound.vue'
Vue.use(VueRouter)
const routes = [
  {
   path:'/',
   redirect: '/find'
  },
  {
    path: '/find',
    component: Find,
    name:'find'
  },
  {
    path: '/my',
    component: My,
    name:'my'
  },
  {
    path: '/friend',
    component: Friend,
    name:'friend'
  },
  {
    path:'*',
    component:NotFound
  }
]
const router = new VueRouter({
  routes
})
export default router